﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="ERP.UI.SystemAdministrator.EditAdministratorCredentials"
	x:Name="Window"
	Title="EditAdministratorCredentials"
	Width="368" Height="192" Background="{x:Null}" ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" WindowStyle="None" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">

	<Grid x:Name="LayoutRoot" Background="{DynamicResource WindowBackground}">
		<Grid.RowDefinitions>
			<RowDefinition Height="0.044*"/>
			<RowDefinition Height="0.123*"/>
			<RowDefinition Height="0.041*"/>
			<RowDefinition Height="0.124*"/>
			<RowDefinition Height="0.042*"/>
			<RowDefinition Height="0.124*"/>
			<RowDefinition Height="0.083*"/>
			<RowDefinition Height="0.169*"/>
			<RowDefinition Height="0.042*"/>
			<RowDefinition Height="0.125*"/>
			<RowDefinition Height="0.083*"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="0.043*"/>
			<ColumnDefinition Width="0.196*"/>
			<ColumnDefinition Width="0.109*"/>
			<ColumnDefinition Width="0.022*"/>
			<ColumnDefinition Width="0.37*"/>
			<ColumnDefinition Width="0.195*"/>
			<ColumnDefinition Width="0.066*"/>
		</Grid.ColumnDefinitions>
		<Label d:LayoutOverrides="Width" Width="Auto" Content="New username" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2"   />
		<Label d:LayoutOverrides="Width" Width="Auto" Content="New password" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2"    />
		<Label d:LayoutOverrides="Width" Width="Auto" Content="Confirm password" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="2"   />
		<TextBox Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="1" Text="" TextWrapping="Wrap" x:Name="tbNewUsername"   />
		<PasswordBox Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="3" x:Name="tbNewPassword"    />
		<PasswordBox Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="5" x:Name="tbNewPasswordConfirm"   />
		<Button Content="Save" Grid.Column="1" Grid.Row="9" Click="ButtonSave_Click" x:Name="btnSave" />
		<Button Content="Close" Grid.Column="5" Grid.Row="9" Click="ButtonCancel_Click" />
		<Border BorderBrush="{DynamicResource BorderBrush}" Grid.ColumnSpan="7" Grid.Column="0" Height="192" VerticalAlignment="Bottom" Grid.RowSpan="11"/>
		<Label Content="*" Grid.Column="6" Grid.Row="3" Style="{DynamicResource ErrorMessage}" Visibility="Hidden" x:Name="lblPasswordError" ToolTip="Please enter a password" />
		<Label Content="*" Grid.Column="6" Grid.Row="5" Style="{DynamicResource ErrorMessage}" Visibility="Hidden" x:Name="lblConfirmPasswordError" ToolTip="Must match password field"/>
		<Label Style="{DynamicResource ErrorMessage}" Content="Cannot change credentials!" Grid.Column="0" Grid.ColumnSpan="7" Grid.Row="7" HorizontalAlignment="Center" x:Name="lblCannotSaveError" Visibility="Hidden" VerticalAlignment="Center"/>
		<Label  Content="Credentials saved successfully" Grid.Column="0" Grid.ColumnSpan="7" Grid.Row="7" HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="lblSavedSuccessfully" Visibility="Hidden"/>
			
	</Grid>
</Window>